/**
 * 
 */
package com.aaron.client;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.TabPanel;

import com.bouwkamp.gwt.user.client.ui.RoundedPanel;

/**
 * Project equivalent to WorkspacePanel. Holds the Edit, Collaboration, Properties tabs and panels
 * @author aaron
 * 
 */
public class ProjectPanel extends Composite {
	private String project_name;
	private String auth;
	RoundedTabPanel tab_panel;
	/**
	 * 
	 * @param project_name Name of the project
	 * @param auth Session key
	 */
	public ProjectPanel(String project_name, String auth){
		this.project_name=project_name;
		this.auth=auth;
		tab_panel=new RoundedTabPanel();
		initWidget(tab_panel);
		//TODO rounded tab panel
		this.addStyleName("vivcode-project-panel");
		tab_panel.add(new Editor(project_name, auth), "<span class=\"gwt-TabBarItem-pre\"></span>Edit<span class=\"gwt-TabBarItem-post\"></span>", true);
		tab_panel.selectTab(0);
		tab_panel.add(new CollaboratePanel(project_name, auth), "<span class=\"gwt-TabBarItem-pre\">Collaborate<span class=\"gwt-TabBarItem-post\"></span>", true);
		tab_panel.add(new ProjectPropertiesPanel(project_name, auth), "<span class=\"gwt-TabBarItem-pre\">Project Properties<span class=\"gwt-TabBarItem-post\"></span>", true);
	}
}
